const http = require('http');

http.createServer((request, response) => {
    console.log(request.headers);
}).listen(3000, '127.0.0.1', () =>{
    console.log('服务已启动监听端口300....');
} );